let app = getApp()
var WxParse = require('../mpvue-wxparse/wxParse/wxParse.js');
Component({
    properties: {
      content: {
        type: String,
        observer: function(newVal, oldVal) {
          this.updateRate()
        }
      }
      },
      data:{},
    lifetimes: {
        attached: function () {
         }
      },
    methods: {
      updateRate:function(){
        var that=this
        this.setData({
          content:that.data.content
        })
        var that = this;
        WxParse.wxParse('article', 'html', that.data.content, that, 5);
      }
    }
});
